<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test File upload</title>
</head>
<body>
<form id="myform" action="tm/file/upload?userCode=0c036993-3714-4cd6-b556-ea6558d6ed3f&loginId=admin&type=img" method="post" enctype="multipart/form-data">  
    <table>
	    <tr>  
	       <td><input type="text" name="userCode" value="190d4172-c887-4b0a-b125-b82eb42373b7"/></td>  
	       <td><input type="text" name="loginId"  value="admin"/></td>
	       <td><input type="text" name="type"  value="img"/></td>  
	    </tr>   
        <tr>  
            <td>照片：</td>  
            <td><input type="file" onchange="submit()" name="fileInfo"/>
            </td>  
            <td><!-- <input type="submit"> --></td>  
        </tr>  
    </table>  
</form>  
</body>
<script type="text/javascript">
	function submit(){
		  document.getElementById('myform').submit();
	}
</script>
</html>